package com.BigDate.server.mapper;


import com.BigDate.server.pojo.ExpComment;
import com.BigDate.server.pojo.expCommentNodeTreeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stx
 * @since 2021-12-22
 */
@Repository
public interface ExpCommentMapper extends BaseMapper<expCommentNodeTreeVo> {
    List<expCommentNodeTreeVo> findComment(Integer projectId);

    List<expCommentNodeTreeVo> findChildComment(Integer commentId);

    List<expCommentNodeTreeVo> findAll(Page<expCommentNodeTreeVo> page);

    int add(ExpComment expComment);

    int deleteById(Integer id);
}
